#include "EpilChunkCode.h"
#include "EpilOutputHelper.h"
#include "TCharSupport.h"
#include "EpilPointerHelper.h"
#include "EpilPointerHelper.h"


EpilChunkCode::EpilChunkCode( const EpilLexLocation & location )
: EpilCodeBase( location )
{
}


EpilChunkCode::~EpilChunkCode()
{
	EpilPointerHelper::DeleteItemsAndClear( m_statements );
}


tstring EpilChunkCode::ToEpilCode( int indent ) const
{
	if( m_statements.empty() )
	{
		return t("");
	}

	return EpilOutputHelper::GetListOutputIndent( m_statements, t("\n"), indent );
}